module.exports = function HTTP(objAll){
    let {url,...obj} = objAll;

    return new Promise(function(resolve,reject){
        wx.request({
            url: 'https://apis.netstart.cn/xmsc' + url,
            ...obj,
            method:"get",
            success(data){
                resolve(data.data); //成功回调
            },
            fail(err){
                reject(err);//失败回调
            },
            complete(){ //接口调用结束，回调函数

            }
        })
    })

}